using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using ToolsLayer;
using Webcar.BLL;
namespace Webcar.Controls.View
{
    public partial class DriverMoveView : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            GridViewStyler gvs = new GridViewStyler(this.GridView1);
            gvs.SetStyle();
        }

        public void InitView(string dept, string start_date, string end_date)
        {
            string sql = "exec prc_get_usermove_record '{0}','{1}','{2}'";
            sql = string.Format(sql, dept, start_date, end_date);
            this.GridView1.DataSource = ToolsLayer.DB.ExecuteDataset(sql);
            this.GridView1.DataBind();
        }
    }
}